package com.clouddo.common.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @classDesc: 功能描述:(分页封装类)
 * @author: xinjinlong
 * @date: 2018/12/16 12:19
 * @copyright (C), 2015-2018, 辰森世纪
 * @email: xjl@choicesoft.com.cn
 */
@Data
@Accessors(chain = true)
public class PageResult<T> implements Serializable {
    private Long total;
    private List<T> rows;

    public PageResult(Long total,List<T> rows) {
        this.rows = rows;
        this.total = total;
    }
}
